<?php
	function js_escape($string) {
		return addcslashes($string, "\\\'\"&\n\r");
	}
?>